﻿using System.Collections.Generic;
using UnityEngine;

namespace Vasuleg.UIDrive
{
    public static class UnityCommonUtils
    {
        public static string GetFullPath(this Transform trans)
        {
            var list = new List<string>();
            do
            {
                list.Add(trans.name);
            } while ((trans = trans.parent) != null);
            list.Reverse();
            return string.Join('/', list);
        }
        
        
    }
}